titles refactor