properly replace title