corrected the condition for value_range error