complete handler.