minor fix to uniquify array