gamma map cleanup