remove irrelavent stuff