replaced opportunity var with opportunity getter 

variable.