implemented store function. but not yet working.