bad shift in divs, must take size of scalar type