upload and quantizing working