trying to add min and max to integer directive