how magic is done