adding some stylus functions