bool array to ID