remove some unnecessary parts