prevent user from setting invalid values