replace gc '!' with '$' and remove not needed command