complie correct but run is wrong