debugging, better plots