remove helper function only used once.