changed instance variables to properties