matches the other function, added argv for easy checking