some code for shares..