corrected macro