stucking detection here