use of Map for passing ids