updated store method