check finish() function