second stage soln