minor changes to assignment and some sensitivity to localG