bit of optimizing