renamed attributes to attributeNames in model

fixes #3034