move edit_function to end