fix bug in take, filter works properly now