optimized the fuck out of this bitch