debugged angular issue