final version for documentation