add checking logic for suspend time