invoke reverse method on array object