tidied up document