added comments for clearer navigation