Immigration patterns before and after 1802