var error and removed logs