simplify some gesture commands
reduce local variables