typo on endpoint creation