magic working