added recursive display array function