changing the deletecommand