fixed bug
added functions