add vertical downsampling method