End index support
parsing value array in subroutine; buggy