improved handling for void method