trying to fix problem with empty regions