added activity clean up attributes method