marked setXY public as well as some other methods