localizing variables using orignal variables as defaults