created temporary variable for repeat casting self->size to double