probably fixing overflow problem