cleaned up the comments for readability