x is a local var now