fixed xy calculation