finally able to store correctly