compile methods for arithmetic and order operations