fixed missing } and var-thingey