Due to the cohesive forces a molecule is pulled equally in every direction by neighbouring liquid molecules, resulting in a net force of zero. The molecules at the surface do not have the same molecules on all sides of them and therefore are pulled inward. This creates some internal pressure and forces liquid surfaces to contract to the minimum area. The forces of attraction acting between the molecules of same type are called cohesive forces while those acting between the molecules of different types are called adhesive forces. The balance between the cohesion of the liquid and its adhesion to the material of the container determines the degree of wetting, the contact angle and the shape of meniscus. When cohesion dominates (specifically, cohesion energy is more than double of adhesion energy) the wetting is low and the meniscus is convex at a vertical wall (as for mercury in a glass container). On the other hand, when adhesion dominates (adhesion energy more than half of cohesion energy) the wetting is high and the similar meniscus is concave (as in water in a glass).