precedence working