removed unused method code.