tweak tap function