adding trylock