major update for front-end functions