remove debug code after fixing problem