adjusting main path