seperate some help funciton to helpfun.h