bugfix
clear kpoint
update of the code