Gnb function

done for now
to do : detail motion fixes