added getter for trait id