update paths method