progress on drilling algorithm