working on curve