markFinal function namechange