naive implemention with int only is over.