rename map method to transformModel