use filepath variable