fix other precendence cases too