added define_progress