[TODO] potential bugs and todos
[BUILD] clang diagnostics
[FIX] amend and fix error