trying to find error in macro