optimizing a bit