assembly of upper and lower gates