linted and OPTIMIZED