added downsampling to find center