clean up codes.