refactor: remove type param. use def instead.