receaving the whole path instead of two strings