changed coeficient generation