changed name to output
broken nb into three versions