make  compare to support array with element