move global to right place