Forget to remark: revIDENewMainstack 40,30 = revIDENewMainstack 400,400 because revIDENewMainstack yourWidth,yourHeight sets new width to the maximum of yourWidth and 400 sets new height to the maximum of yourHeight and 400