added downsampling to features