attempt at first 2 endpoints