adding curves