manual merge from alternative_loop =)