adding  complete method dynamically to todo in repository