first attempt at fixing bug