fixed downsampling logic - only at top level now