Reorganizing magic hat activity