changed somethings around and removed the path variable