clean up title code