version 2.0 with documented functions