fixed this in attr method