removed unsed variable causing compiler warning