refactor: remove redundant codes