added function to create "comment" attributes