moved sites array to global scope