fix errors and add koef to interface