remove line function