use id and name in mapping