fix format for setting attributes