frame cleanup