Getting and cleaning data assignment