added macro to main..WG..