refectored and changed createProject function to create