update code for store