add rest of return types to java method calling