split patterns into phases