fixing how data is stored