add range functionality in any expression