add helper function for 'goodenough'