remove some unnecessary virtual functions