second commit add if condtion and call the function