added function to match suspends to resumes