use seperate methods for storing data