this is after the code works till vertices