rewrite gettitle method