fixed var/static problem