minor fix: last pointer don't need to be updated