apply variable path