made addData easier to test