update todo in code