added languagecode and segment key to methods