removing useless samples