fix the nested list syntax