failing on pop array