created store functionality