tidied up an equation