using NSNumber for min and max values
using NSNumber for min and max values