changed shop functions