first shot at using mutex