update near & far