reduce identify function