unable to get anywhere with the scoping issue