change property to method