fixed up the magic command