pre-initialization clustering step added