fixing local variables
fix local vars