segregate functions file