migrated to angular 1.2.0