for gem lock