fixed var name mistakes