rename var and func for the sake of clarity