it works, we just have to set dinamically the return code