now with the proper endpoitn