wrote explation
moved formatting