edit to function file