added checking prices