Resolving owerflow