Ukkonen's version 4

modified update activepoint