added mutex but not working