removed -Wextra
fixed kbest global var