staircase command implementation