started writing the latex version