algo flow in comments because im noob