updated for total of 3 steps