changed debugging in angular inc function