factored object graph creation of the two main methods