was magic