comments and formatted for clarity