testing legacy code