implement optimal pricing