solved infinity issue