added check to see if passed in data is already in proper format