added a shareId function