added functions to headerfile