adding functions for front-end