changed data storage method