numerical version of Hui model works