added switch statement when geometrycollection, instead of one point