added mechanics of elements' calculation