synch compilation success but does not work properly