customized for data blendr project for hw4