replace a^2 with alpha when appropriate