script that skips processing empty areas