optimized and made smaller 'off' method
.min updated