got array subroutine to compile