fix var name and add constant var estimation