ADD function to return dynamic map and print keyvals