manage store function