addded some debugging