added comments for logging steps