added flow control gates and modified gate names