change task count and action to synchronized