modified functions.h