deleted most of main