invoking method with reflection api