trim unwanted stuff