added stylus mode