basic flow of out stock