updated setup to run on Grid
updated setyup function usage