possible pass null to on function