There are lots of unused variables and invalid code in the project, needs to add proper linter to avoid