working on loadAttributes