needed for angularjs