use int instead of float