Update var replacement