PosLength transformation working