The plaintiff may in his answer ask for leave to relinquish the land to the occupying claimant, and to recover the value thereof, aside from the improvements.