added endorsement functionality