add new popline function works