optimizations.. in a different way