changed code- for angular