new gate using tasks