added magic properties. checks if node called parent::__construct() with correct data