SImarg function added