remove duplicative commands