staff leave detector finished