modify lib sample