changed real time stock function