use type for static array to determine element size