working on attributes
formatting
now parses attributes