organize and comment code