replaced old filepath var with inline var