modified for angular 1.2 files