switching over to a  api call that matches the angular documentation better