working on doit method