Corrections needed to compile

I had to change these to make code work compile