fixed orders of operation error.