return working detection logic back