go on fixing compilation bugs about return value