removed duplicated snippet