remove unneeded text portion