added method to get first gate