use int(float()) instead of int() to convert str to int