Jack rafter function fixed