turned funcs to procs