Made shape array 'int' to suppress warning