getting and cleaning data