clean up resolve()