sorted xypad problem resutling from update to code