fix for returning val from void func