attr method copied in