preflab: naive implementation of rotate & smooth