cleaned up uniquify in phenogrid