mutex is no longer pointer, that gave segfault