changed the method to access property from direct to call method.