fixed malloc for concs and mats