corrected scope for type resolving