added functions
added several functions