added last array function