created generic method to create data to test