putted comments for clarity