smarter code