import map seem unnecessary here as it is only used wrapped in `max()`