debugged some error