rework the web stability function to uniform