gate detection up