adds a price and fixes a bug