added defines for functions