fixed varialbe to static (refactoring)