added description for functions
refactoring