templates
validation function for ranges