added some code to make life easier to copy into latex