work on fixing bug started