some optimizations make it possible to save a ton of cycles and one instruction