forgot to remove debug printfs() :-)