1. minor optimization to coordinate calculation