modifed angularjs