fixed editing a todo function