would like to see a unit test around this function