remove uneeded stuff from sample