combining all the different materials into a single one