work on ksubset, fix log3 (?)