added legacy example