fix misuse of partial and map