staircase with 2 phases