removed problematic record type mapping code