changed class automatically set property from id to name