fixing bug with pulling