unnecessary frames removing added