use arrays for paths