minor refactor to use callback selectItems