fixed storing duplicate info in endpoint