change function name to appropriate one
separate the function object to json and added object to array on utils