upgraded to angular 1.2r1