small fix and wiped out old grants code