remove unused helper function