make internal function static
use int explicitly