works for multidigit integers now