added macro embedded code