delete useless rows