lints and optimizations