change method for getting properties