step by step analysis