slightly updated notes