debugged update