changed gesture to gesture.type but still AttributeError not yet fixed