magic assignment