removed duplicate code(unnesesary)