implemented catmouse_synch.c