prototype for check if stuck