the assignment is needed as for some reason the assignment in this.calculateFeatureDx() is not passing through in the Canvas class