update sticky function