. " other than 12 equal installments, such compensation shall be annualized as if the member had elected to receive 12 equal installments for any such periods preceding retirement; in the case of a member who retires after July 1, 1987, the average highest annual compensation paid to such member for any four years of participating service pre- ceding retirement or termination of employment; in the ca" . . .