getting rid of some unnecessary characters