changed lists to generators