added giveup option