flatten everything