refactor (change unused return type to void)