removed logging; refactored array iteration for steps