added recording previous step