replaced grep by cut