added funcs file