added function for store