commented out smoothstate stuff