added a drop_empty for downsample