added gate 2