small refactor and matches function to subtitle class