THE pain of defeat and the adrenaline of battle kept James Tavernier awake. His choice of viewing always had the potential to give him nightmares.

The right-back returned home last Wednesday night with the loss to Hearts still fresh in his mind. So, too, were the mistakes that cost his side dear at Tynecastle.

Tavernier was at fault for both goals as Robbie Muirhead netted in either half to ensure Robbie Neilson’s final game in charge of the Jambos was a victorious one.

But the 25-year-old was never going to hide away or look to downplay his part in a defeat that piled the pressure on Mark Warburton and his players.

Instead, Tavernier sat down and watched the action unfold all over again. It was tough to witness second time around, but he is confident it will help him improve in the future.

“I was especially disappointed with the second goal,” he said.

“I’ve gone into midfield to close one of their players down, then the guy has run from the left-back position into the space. I should have just defended the ‘maybe’ situation and that goal would definitely have been cut out.

“The first one was a cross into the back post, so there are definitely things I can learn from.

“You have to make mistakes to learn from certain situations, so that’s only going to make me better in the future.

“I’m always really tough on myself after I’ve had a bad game. The two days after that game were really tough and it’s something you just need to get your head around.

“I watched the game again when I got home. I normally go to bed late after a midweek game, in the early hours of the morning, because I have so much adrenaline still running around.

“So I watch it to see what the good things and bad things were from it. That was obviously a hard one to watch because of the two mistakes which took everything else away from the game for us.

“Mentally, you have to get yourself in a better place after a couple of days. That’s what I’ve done. I’m back to my normal self now.”

The emotions were still raw for Tavernier when Rangers returned to Auchenhowie and the recovery process began once again.

Warburton only had a couple of days to rally his troops and prepare the Gers for the visit of Aberdeen and another hugely significant outing in the battle for second spot this season.

Tavernier was one of the Tynecastle starters that paid the price for a sloppy showing as he dropped out of the Light Blue line-up and was replaced by Lee Hodson.

The Northern Irish international would make the most of his chance to impress as he scored the second goal of the game in a man of the match winning performance.

It was another blow to Tavernier, but it is another challenge he is determined to rise to and respond to as he looks to reclaim his right-back berth against Hearts this afternoon.

Tavernier said: "He just wants me to have a positive attitude to his decision. I've worked hard this week and I've just got to see what happens this week.

"It's down to the gaffer and I respect his position. I was devastated not to start, but it gives you a kick up the backside and makes you work harder.

“It's maybe something that I needed. Lee had a great game too and it will maybe make me work harder.

“It’s down to the gaffer’s decision and I respect that. I was devastated not to start the game but it gives you a kick up the backside and makes you work harder.

“It only makes you perform better, so it was something that I needed. Lee had a great game, so it is better competition which will make me work harder.”

Tavernier may have missed out on a starting jersey against the Dons but he still had a part to play in a deserved 2-1 win for Rangers.

The Englishman assumed a central midfield role when he replaced Kenny Miller with 25 minutes remaining and helped Warburton’s side to a crucial Premiership triumph.

Tavernier’s attacking talents have always been the best part of his game but he isn’t looking to forge a career for himself further up the pitch at present.

He said: "I've played that position at other clubs. I'm a player who can play in quite a lot of positions and I felt comfortable when I was higher up the pitch.

"As I see it if I want to try and reach the best of my game I see the best of my game coming from right back.

“I'd like to think I've got the attributes to play at right back, but when you are going into different positions of maybe like a right wing or a centre midfield, you have to got to be up there with the Hazards if you want to be the best in the world.

“So going forward I probably think to myself right back is my best position."