deleted duplicate code