updated processing step by step