parse trees and modulus