function "gsys", RM mdoe done.
need to change to variable argument form.