added functions and tests stubs