We improve the Frankl-Wilson upper bound on the maximal number of edges in a hypergraph with forbidden cardinalities of edge intersections.