added array function to query api function, removed a script added by accident.