added reverse array