last but not least, a unit test on this method would be awesome