tidied brackets