removed unneeded register handler.