fixing programming bugs