fixing endpoint