added functions to header