tidied up the references