edited main lib file