tried some things, didnt work. still working on objective function vs K issue