1. modify the method UpdateDirectionSet()