refactor to make separate tests easier to write
write first test