Change for attribute to use scala id