changed unique id's to longs