rm stock functions