removed warnings on unused variables