duplicate code with above lines.