handling empty geometry