added functions to stdlib