fixed mix up between void and return