fixed overflow (hopefully)