some front end coding