fixed overflow error