changed rendering input from list to map - 2