generate single return value for some method