added is_blank function