added part of main