may be we can move this declaration upper in the function, just for the benefit of using it in other places