EXTREMELY IMPORTANT REVERSEMAP FUNCTION