cleaning loose ends