Replacing static coordinates with dynamic coordinates