fits curve for fake data