little corrections, it now works