adds magic prototype