separater iterator as a class