remove messy bits