tweaking safeX and safeY

the safeX and safeY should be absolute X and Y position where it's safe