add move to head script