minor changes while debugging an angular issue