- fixed unused variables bug