add macro mym_inrange and mym_outrange