worked on functions.h