removing some unnecessary characters