commented functions and major points