fixed the definition of an 'inside' mapper