magic formation pattern