some minor amendments