corrected constructor to avoid empty list