correctly use the calculated path