change how to get desired K and F