made sure data was stringified