removed unused variables in characterController