[refactor] use return void indside the compiler