remove non-used characters and variables