clean up equations a bit