removed unused codes.