get() now working correctly with grep instead of map