calls resource cleaning