now parses attributes