script to id races