optimized a function slightly

i need to keep this 25+ day commit streak going somehow