fix: unnecessary global variable