finish method define