adjusted code for making geo array