refactor is arrow