debugging, still in progress