changed function calls from branches to jal