Implementation of 01mutex
removal of output