added functions to setup