correct creation of input paths for lattices
correct creation of input paths for lattices