change method to get property