removing ! from the end of the cmd