before removing files