change the usage of synthetic bits mask to method invoke.
the 100 prisoners and lightbulb problem