front-loaded the functions.