diff segmentation issues removed

Signed-off-by: jayrambhia <jayrambhia777@gmail.com>