optimized a bit