optimizated class