fixed remove from hash chain bug and add line number