implemented simple value range testing