use mathematical precedence rules