stock funcitons