modified grep for nband