fixes overflow