changed getter and setter to attr