edited main lib