added remove function for resume