attempt to fix x/y coords error
cleaned up warning code