adding metadata map back in