method cleanup