can now pass array for select, so you can call your select function in a class