more optimizations that a perfect compiler would do...