refactoring : remove unused var