greedy downsampling for andrey
intermediate for testing