add a rent function added