commented out helper function