tried debug (not yet complete)