minor improvement to primitive ops opt