removed unused code

made code shorter!!