modify shifttables and add possign