cleanup and credit