use more local vars