curves working