added mutix to see if it would solve problem. no success