changed curve array to be a set array