replaced call to Pos constructor with object literal