added the increment function