commented front end code