error handling for rental