updated activity diagram