minor refactor, deleted ipdb