continue fleshing out the dothis method