basic remove line functionality