added in printstrings to test synchronisation of master threads