inserted check on price being numeric variable