overwrite onFinish method