working documentation code