use correct type to initialize an array