use applyN