cleans up front end