remove all unrelated code