added global definitions
for to DRY