adding return value for methodcall