finished version 1 of KBJ