now compiles fillArray sucessfully