fix void functions not returning void