third commit for jpg graph