handling srcType === 'string'