migrating code over to concurrent