commented legacy code