a few, probably useless, speed ups