refactored bbox request array function