curves work properly now