adding  maxtrackpad function