removing unnecessary marks