implemented price checking