remove redundant private functions