working with magic