greet and stock functions edited