sorted some spit functions