first method to return intent value done