implement store functions