fixing order of ring arguments