used correct method to get the full path