updated proximity writing