fixing bug with outside-shape value