staff leave detector to be finished