use function instead of method for translation