creating a more robust touch routine