set length on pop