Optimizing by reducing loops passages + commenting