prototype for removing completed rows