changed the liberary structure