support matching with $lt and $gt