deal with empty sheet