deleting unused code in materializer