changed regexfor leave command