changed rendering input from list to map