putting in smooth2d script