Refactor of a variable to prevent duplicate declaration further on

Signed-off-by: Zeklandia <awood5659@gmail.com>