small changes for rational