adding ability to pass array to get method