correct sliding/filtering data and cover by test