fexed the resume method