added the cutted version of main