clean up all codes