wrote my own takeEvery