change source.constructor check