changed to store the instance variable in the parent of DataMagic