full code for GetAndCleanData