setup_gpar function

Setup gpars