Removing unnecessary stuff from sample