prevent duplicate activities from being created