assign task to reaction