add some prints, fix indentation