added check for void type + no return